const mongoose = require("mongoose");
const fileSchema = new mongoose.Schema({
  //   picUrl: {
  //     type: {},
  //     trim: true,
  //     //unique:true, 唯一索引
  //     //index:true, 普通索引
  //     default: "http:localhost:1234/default/avator.jpg",
  //   }, //任意类型
  //   saveTime: { type: String, trim: true },
  hash: {
    type: String,
    unique: true,
    index: true,
  },
  name: String,
  max: Number,
  cindex: Number,
  hz: String,
  url: String,
});
const file = mongoose.model("file", fileSchema);
module.exports = {
  file,
};
